// Wait for Cordova to load
    //
    document.addEventListener("deviceready", onDeviceReady, false);

    // Cordova is ready
    //
    function onDeviceReady() {
        // Empty
    }

    // Beep three times
    //
    function playBeep() {
        navigator.notification.beep(3);
    }